package com.base.exception;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class NetStateException extends RuntimeException{

    public int resultCode;
    public String data;
    public Object json;

    public NetStateException(){
        super();
    }

    public NetStateException(int resultCode, String data, Object json) {
        this.resultCode = resultCode;
        this.data = data;
        this.json = json;
    }

    public NetStateException(String message, int resultCode, String data, Object json) {
        super(message);
        this.resultCode = resultCode;
        this.data = data;
        this.json = json;
    }

    public NetStateException(String message, Throwable cause, int resultCode, String data, Object json) {
        super(message, cause);
        this.resultCode = resultCode;
        this.data = data;
        this.json = json;
    }

    public NetStateException(Throwable cause, int resultCode, String data, Object json) {
        super(cause);
        this.resultCode = resultCode;
        this.data = data;
        this.json = json;
    }

    public NetStateException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, int resultCode, String data, Object json) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.resultCode = resultCode;
        this.data = data;
        this.json = json;
    }

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public Object getJson() {
        return json;
    }

    public void setJson(Object json) {
        this.json = json;
    }
}
